Skip to content

AWS WAF: aws_wafv2_web_acl_association import throws error #1965

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
geevarghesest opened this issue Dec 19, 2024 · 1 comment
Open

AWS WAF: aws_wafv2_web_acl_association import throws error #1965

geevarghesest opened this issue Dec 19, 2024 · 1 comment
Labels

Comments

@geevarghesest
Copy link

geevarghesest commented Dec 19, 2024

Running terraformer import for wafv2 gives the below error. I have tried using filter with the format Name=id;Value=WEB_ACL_ARN,RESOURCE_ARN but no resources gets imported.

terraformer version: latest compiled from master branch
aws-provider version: v5.81.0

terraformer import aws --resources=wafv2_regional --regions=ap-southeast-1 --profile=""

2024/12/19 08:30:33 aws importing region ap-southeast-1
2024/12/19 08:30:34 aws importing... wafv2_regional
2024/12/19 08:30:35 aws done importing wafv2_regional
2024/12/19 08:30:35 Number of resources for service wafv2_regional: 5
2024/12/19 08:30:35 Refreshing state... aws_wafv2_web_acl_association.tfer--arn-003A-aws-003A-elasticloadbalancing-003A-ap-southeast-1-003A-64260345632-003A-loadbalancer-002F-app-002F-pesac-alb-002F-82a453928601ffbf
2024/12/19 08:30:35 Refreshing state... aws_wafv2_web_acl_association.tfer--arn-003A-aws-003A-apigateway-003A-ap-southeast-1-003A--003A--002F-restapis-002F-f1mflmqth1-002F-stages-002F-production
2024/12/19 08:30:35 Refreshing state... aws_wafv2_web_acl_association.tfer--arn-003A-aws-003A-apigateway-003A-ap-southeast-1-003A--003A--002F-restapis-002F-tixdl6x4ik-002F-stages-002F-production
2024/12/19 08:30:35 Refreshing state... aws_wafv2_web_acl.tfer--too_many_requests_block_ed7debfc
2024/12/19 08:30:35 Refreshing state... aws_wafv2_ip_set.tfer--lightsail_3d67ba3a
2024-12-19T08:30:35.126Z [ERROR] plugin.terraform-provider-aws_v5.81.0_x5: Response contains error diagnostic: tf_resource_type=aws_wafv2_web_acl_association @caller=github.com/hashicorp/terraform-plugin-go@v0.25.0/tfprotov5/internal/diag/diagnostics.go:58 diagnostic_detail="" tf_proto_version=5.7 tf_provider_addr=registry.terraform.io/hashicorp/aws tf_req_id=3ffa482a-f9c0-90c4-603f-68a5de964736 tf_rpc=ReadResource @module=sdk.proto diagnostic_severity=ERROR diagnostic_summary="unexpected format for ID ([arn:aws:apigateway:ap-southeast-1::/restapis/f1mflmqth1/stages/production]), expected more than one part" timestamp=2024-12-19T08:30:35.125Z
2024-12-19T08:30:35.126Z [ERROR] plugin.terraform-provider-aws_v5.81.0_x5: Response contains error diagnostic: @module=sdk.proto diagnostic_detail="" diagnostic_severity=ERROR diagnostic_summary="unexpected format for ID ([arn:aws:apigateway:ap-southeast-1::/restapis/tixdl6x4ik/stages/production]), expected more than one part" tf_proto_version=5.7 @caller=github.com/hashicorp/terraform-plugin-go@v0.25.0/tfprotov5/internal/diag/diagnostics.go:58 tf_resource_type=aws_wafv2_web_acl_association tf_req_id=95a0c5f7-fd56-6b60-4332-d53660c0e1c5 tf_rpc=ReadResource tf_provider_addr=registry.terraform.io/hashicorp/aws timestamp=2024-12-19T08:30:35.125Z
2024-12-19T08:30:35.126Z [ERROR] plugin.terraform-provider-aws_v5.81.0_x5: Response contains error diagnostic: @module=sdk.proto tf_req_id=d775aa64-7503-c74c-661b-4e5f6f052a9e diagnostic_summary="unexpected format for ID ([arn:aws:elasticloadbalancing:ap-southeast-1:64260345632:loadbalancer/app/pesac-alb/82a453928601ffbf]), expected more than one part" tf_proto_version=5.7 tf_provider_addr=registry.terraform.io/hashicorp/aws @caller=github.com/hashicorp/terraform-plugin-go@v0.25.0/tfprotov5/internal/diag/diagnostics.go:58 diagnostic_detail="" diagnostic_severity=ERROR tf_resource_type=aws_wafv2_web_acl_association tf_rpc=ReadResource timestamp=2024-12-19T08:30:35.126Z
2024/12/19 08:30:35 unexpected format for ID ([arn:aws:elasticloadbalancing:ap-southeast-1:64260345632:loadbalancer/app/pesac-alb/82a453928601ffbf]), expected more than one part
2024/12/19 08:30:35 WARN: Fail read resource from provider, wait 300ms before retry
2024/12/19 08:30:35 unexpected format for ID ([arn:aws:apigateway:ap-southeast-1::/restapis/f1mflmqth1/stages/production]), expected more than one part
2024/12/19 08:30:35 WARN: Fail read resource from provider, wait 300ms before retry
2024/12/19 08:30:35 unexpected format for ID ([arn:aws:apigateway:ap-southeast-1::/restapis/tixdl6x4ik/stages/production]), expected more than one part
2024/12/19 08:30:35 WARN: Fail read resource from provider, wait 300ms before retry

Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant